<!-- 首页列表标题组件 -->
<template>
    <div class="home-title">
        <!-- 具名插槽 -->
        <slot name="title"></slot>
        <slot name="nav"></slot>
        <slot name="more"></slot>
    </div>
</template>
<script>
export default{
    name:'home-title'
}
</script>

<style lang="less" scoped>
@import '@/assets/styles/variables.less';
.home-title{
    display: flex;
    padding: 40px 0;
    align-items: center;

    h3{
        /* 表示：伸缩。 基础大小为0 将根据 flex-grow 的比例增大 */
        flex:1;
        font-size: 32px;
        font-weight: 400;
        margin-left: 6px;
        height: 35px;
        line-height: 35px;
        span{
            font-size: 16px;
            color: #999;
            margin-left: 20px;
        }
    }

    ul{
        display: flex;
        margin-bottom: 2px;
        li{
            a {
				padding: 2px 12px;
				font-size: 16px;
				border-radius: 4px;
				transition: all 0.1s;
				&:hover {
					color: #fff;
					background-color: @themeColor;
				}
			}
			&:last-child {
				margin-right: 80px;
			}
        }
    }

    .more{
        &:hover > span,
        &:hover > i{
            color:@themeColor;
        }

        span{
            font-size: 16px;
            vertical-align: middle;
            margin-right: 4px;
            color: #ccc;
        }
        i{
            font-size: 16px;
            vertical-align: middle;
            color: #ccc;
        }
    }

    .btn-brand{
        background-color: #999;
        color: white;
        width:20px;
        height:20px;
        line-height: 20px;
        text-align: center;
        margin-left: 5px;

        i{
            font-size: 14px;
        }
    
    }

    .next{
        background-color: @themeColor;
    }

    .prev{
        /*不允许点击*/
        cursor: not-allowed;
    }
}
</style>